﻿using ApproveFlowEngine.EntityFrameworkCoreSplitTable.EFCore.Core;
using ApproveFlowEngine.Split;

using Microsoft.EntityFrameworkCore;

using Volo.Abp.Data;

namespace ApproveFlowEngine.EntityFrameworkCore
{
    [ConnectionStringName("Default")]
    public class ApproveFlowEngineSplitDbContext : SplitDbContext
    {
        public ApproveFlowEngineSplitDbContext(DbContextOptions<SplitDbContext> options) : base(options)
        {
        }

        public DbSet<SplitData> SplitDatas { get; set; }
        public DbSet<Test> Tests { get; set; }

        protected override void OnModelCreating(ModelBuilder modelBuilder)
        {
            base.OnModelCreating(modelBuilder);
            modelBuilder.Entity<SplitData>(c =>
            c.ToTable("split"));
        }
    }
}